package com.lzx.lzxlibrary.bean;

import java.util.List;

/**
 * <pre>
 *     author : 张辉
 *     e-mail : 397243131@qq.com
 *     time   : 2021/07/28
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class ReportBean {


    /**
     * code : 200
     * ok : true
     * msg : 成功
     * body : {"content":[{"id":"8e4f16c7-6a15-446c-93c7-f11c5ce4095e","createdTime":"2021-07-27 10:22:51","updatedTime":"2021-07-27 10:22:51","version":0,"updatedBy":"admin","createdBy":"admin","reportName":"呼吸放松","reportNo":null,"reportType":"呼吸放松","reportLong":30,"reportDate":1,"pulse":87,"spoz":92,"pnn50":0.141,"heartRate":87,"rmax":0.682,"rmin":0.045,"qrsmax":0.227,"qrsmin":0.015,"resultsLevel":"无","results":"暂无建议","graphData":"[75,72,13,13,14,15,17,20,24,30,36,43,50,57,65,72,78,83,87,90,91,92,90,89,86,83,79,75,71,67,64,61,58,56,54,53,52,51,51,50,50,50,49,48,48,47,45,43,41,39,36]","valid":true,"itemId":"8e4f16c7-6a15-446c-93c7-f11c5ce4095e"}],"pageable":{"sort":{"sorted":true,"unsorted":false},"pageNumber":0,"pageSize":20,"offset":0,"unpaged":false,"paged":true},"last":false,"totalPages":2,"totalElements":28,"first":true,"sort":{"sorted":true,"unsorted":false},"numberOfElements":20,"size":20,"number":0}
     */


    /**
     * content : [{"id":"8e4f16c7-6a15-446c-93c7-f11c5ce4095e","createdTime":"2021-07-27 10:22:51","updatedTime":"2021-07-27 10:22:51","version":0,"updatedBy":"admin","createdBy":"admin","reportName":"呼吸放松","reportNo":null,"reportType":"呼吸放松","reportLong":30,"reportDate":1,"pulse":87,"spoz":92,"pnn50":0.141,"heartRate":87,"rmax":0.682,"rmin":0.045,"qrsmax":0.227,"qrsmin":0.015,"resultsLevel":"无","results":"暂无建议","graphData":"[75,72,13,13,14,15,17,20,24,30,36,43,50,57,65,72,78,83,87,90,91,92,90,89,86,83,79,75,71,67,64,61,58,56,54,53,52,51,51,50,50,50,49,48,48,47,45,43,41,39,36]","valid":true,"itemId":"8e4f16c7-6a15-446c-93c7-f11c5ce4095e"}]
     * pageable : {"sort":{"sorted":true,"unsorted":false},"pageNumber":0,"pageSize":20,"offset":0,"unpaged":false,"paged":true}
     * last : false
     * totalPages : 2
     * totalElements : 28
     * first : true
     * sort : {"sorted":true,"unsorted":false}
     * numberOfElements : 20
     * size : 20
     * number : 0
     */

    private PageableBean pageable;
    private boolean last;
    private int totalPages;
    private int totalElements;
    private boolean first;
    private SortBeanX sort;
    private int numberOfElements;
    private int size;
    private int number;
    private List<ContentBean> content;

    public PageableBean getPageable() {
        return pageable;
    }

    public void setPageable(PageableBean pageable) {
        this.pageable = pageable;
    }

    public boolean isLast() {
        return last;
    }

    public void setLast(boolean last) {
        this.last = last;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public int getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(int totalElements) {
        this.totalElements = totalElements;
    }

    public boolean isFirst() {
        return first;
    }

    public void setFirst(boolean first) {
        this.first = first;
    }

    public SortBeanX getSort() {
        return sort;
    }

    public void setSort(SortBeanX sort) {
        this.sort = sort;
    }

    public int getNumberOfElements() {
        return numberOfElements;
    }

    public void setNumberOfElements(int numberOfElements) {
        this.numberOfElements = numberOfElements;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public List<ContentBean> getContent() {
        return content;
    }

    public void setContent(List<ContentBean> content) {
        this.content = content;
    }

    public static class PageableBean {
        /**
         * sort : {"sorted":true,"unsorted":false}
         * pageNumber : 0
         * pageSize : 20
         * offset : 0
         * unpaged : false
         * paged : true
         */

        private SortBean sort;
        private int pageNumber;
        private int pageSize;
        private int offset;
        private boolean unpaged;
        private boolean paged;

        public SortBean getSort() {
            return sort;
        }

        public void setSort(SortBean sort) {
            this.sort = sort;
        }

        public int getPageNumber() {
            return pageNumber;
        }

        public void setPageNumber(int pageNumber) {
            this.pageNumber = pageNumber;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getOffset() {
            return offset;
        }

        public void setOffset(int offset) {
            this.offset = offset;
        }

        public boolean isUnpaged() {
            return unpaged;
        }

        public void setUnpaged(boolean unpaged) {
            this.unpaged = unpaged;
        }

        public boolean isPaged() {
            return paged;
        }

        public void setPaged(boolean paged) {
            this.paged = paged;
        }

        public static class SortBean {
            /**
             * sorted : true
             * unsorted : false
             */

            private boolean sorted;
            private boolean unsorted;

            public boolean isSorted() {
                return sorted;
            }

            public void setSorted(boolean sorted) {
                this.sorted = sorted;
            }

            public boolean isUnsorted() {
                return unsorted;
            }

            public void setUnsorted(boolean unsorted) {
                this.unsorted = unsorted;
            }
        }
    }

    public static class SortBeanX {
        /**
         * sorted : true
         * unsorted : false
         */

        private boolean sorted;
        private boolean unsorted;

        public boolean isSorted() {
            return sorted;
        }

        public void setSorted(boolean sorted) {
            this.sorted = sorted;
        }

        public boolean isUnsorted() {
            return unsorted;
        }

        public void setUnsorted(boolean unsorted) {
            this.unsorted = unsorted;
        }
    }

    public static class ContentBean {
        /**
         * id : 8e4f16c7-6a15-446c-93c7-f11c5ce4095e
         * createdTime : 2021-07-27 10:22:51
         * updatedTime : 2021-07-27 10:22:51
         * version : 0
         * updatedBy : admin
         * createdBy : admin
         * reportName : 呼吸放松
         * reportNo : null
         * reportType : 呼吸放松
         * reportLong : 30
         * reportDate : 1
         * pulse : 87
         * spoz : 92
         * pnn50 : 0.141
         * heartRate : 87
         * rmax : 0.682
         * rmin : 0.045
         * qrsmax : 0.227
         * qrsmin : 0.015
         * resultsLevel : 无
         * results : 暂无建议
         * graphData : [75,72,13,13,14,15,17,20,24,30,36,43,50,57,65,72,78,83,87,90,91,92,90,89,86,83,79,75,71,67,64,61,58,56,54,53,52,51,51,50,50,50,49,48,48,47,45,43,41,39,36]
         * valid : true
         * itemId : 8e4f16c7-6a15-446c-93c7-f11c5ce4095e
         */

        private String id;
        private String createdTime;
        private String updatedTime;
        private int version;
        private String updatedBy;
        private String createdBy;
        private String reportName;
        private Object reportNo;
        private String reportType;
        private int reportLong;
        private int reportDate;
        private int pulse;
        private int spoz;
        private double pnn50;
        private int heartRate;
        private double rmax;
        private double rmin;
        private double qrsmax;
        private double qrsmin;
        private String resultsLevel;
        private String results;
        private String graphData;
        private boolean valid;
        private String itemId;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCreatedTime() {
            return createdTime;
        }

        public void setCreatedTime(String createdTime) {
            this.createdTime = createdTime;
        }

        public String getUpdatedTime() {
            return updatedTime;
        }

        public void setUpdatedTime(String updatedTime) {
            this.updatedTime = updatedTime;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public String getUpdatedBy() {
            return updatedBy;
        }

        public void setUpdatedBy(String updatedBy) {
            this.updatedBy = updatedBy;
        }

        public String getCreatedBy() {
            return createdBy;
        }

        public void setCreatedBy(String createdBy) {
            this.createdBy = createdBy;
        }

        public String getReportName() {
            return reportName;
        }

        public void setReportName(String reportName) {
            this.reportName = reportName;
        }

        public Object getReportNo() {
            return reportNo;
        }

        public void setReportNo(Object reportNo) {
            this.reportNo = reportNo;
        }

        public String getReportType() {
            return reportType;
        }

        public void setReportType(String reportType) {
            this.reportType = reportType;
        }

        public int getReportLong() {
            return reportLong;
        }

        public void setReportLong(int reportLong) {
            this.reportLong = reportLong;
        }

        public int getReportDate() {
            return reportDate;
        }

        public void setReportDate(int reportDate) {
            this.reportDate = reportDate;
        }

        public int getPulse() {
            return pulse;
        }

        public void setPulse(int pulse) {
            this.pulse = pulse;
        }

        public int getSpoz() {
            return spoz;
        }

        public void setSpoz(int spoz) {
            this.spoz = spoz;
        }

        public double getPnn50() {
            return pnn50;
        }

        public void setPnn50(double pnn50) {
            this.pnn50 = pnn50;
        }

        public int getHeartRate() {
            return heartRate;
        }

        public void setHeartRate(int heartRate) {
            this.heartRate = heartRate;
        }

        public double getRmax() {
            return rmax;
        }

        public void setRmax(double rmax) {
            this.rmax = rmax;
        }

        public double getRmin() {
            return rmin;
        }

        public void setRmin(double rmin) {
            this.rmin = rmin;
        }

        public double getQrsmax() {
            return qrsmax;
        }

        public void setQrsmax(double qrsmax) {
            this.qrsmax = qrsmax;
        }

        public double getQrsmin() {
            return qrsmin;
        }

        public void setQrsmin(double qrsmin) {
            this.qrsmin = qrsmin;
        }

        public String getResultsLevel() {
            return resultsLevel;
        }

        public void setResultsLevel(String resultsLevel) {
            this.resultsLevel = resultsLevel;
        }

        public String getResults() {
            return results;
        }

        public void setResults(String results) {
            this.results = results;
        }

        public String getGraphData() {
            return graphData;
        }

        public void setGraphData(String graphData) {
            this.graphData = graphData;
        }

        public boolean isValid() {
            return valid;
        }

        public void setValid(boolean valid) {
            this.valid = valid;
        }

        public String getItemId() {
            return itemId;
        }

        public void setItemId(String itemId) {
            this.itemId = itemId;
        }
    }
}
